import myAxios from "@/utils/request";

const getCheckCode = async () => {
    return myAxios({
        url: '/account/checkCode',
        method: 'post',
    }, { loading: false, error_message_show: false });
}

const userRegister = async (params: any) => {
    return myAxios({
        url: '/account/register',
        method: 'post',
        data: params,
    }, { loading: false, code_message_show: true });
}

const userLogin = async (params: any) => {
    return myAxios({
        url: '/account/login',
        method: 'post',
        data: params,
    }, { loading: false });
}


export {
    getCheckCode,
    userLogin,
    userRegister,
}